import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

const routes = [
  {
    path: '/dream',
    name: '首页',
    component:() => import('@/views/index.vue'),
    hidden: true,
    children:[
      {
        path: 'home',
        name: '首页',
        component:() => import('@/views/home.vue'),
        hidden: true,
        meta:{
            title:'首页'
        }
      },
    ]
  }
];

const router = new Router({
  // mode: 'history',
  // base: process.env.BASE_URL,
  routes,
});

export default router;